package zb.blog.bean;

import zb.blog.base.util.EncryptUtil;


/**
 * @Author: BinZhang
 * @Date: 2018/5/8 22:45
 * @Description:文章(请勿自动生成id的getter和setter方法，这里需要手动生成)
 */
public class ArticleBean {
    private String id;//这里采用自定义数字加密

    private Integer user_id;
    private String user_name;//用户名

    private Integer blog_navbar_id;
    private String blog_navbar_name;//所属导航菜单名称

    private String article_url;//文章获取banner的域名

    private String title;
    private String content;
    private String front_descr;
    private String front_img;
    private String back_descr;
    private String hightlight_css;
    private String create_time;
    private String modify_time;
    private Integer is_demo;
    private String demo_url;
    private Integer is_download;
    private String zip_url;
    private Integer type;
    private Integer status;
    private Integer visit_count;

    private String prevId;
    private String prevArticleTitle;
    private String nextId;
    private String nextArticleTitle;


    public String getId() {
        return id;
    }

    //加密的id
    public void setId(Integer id) {
        this.id = EncryptUtil.customEncrypt(id);
    }

    //设置非加密的id
    public void setNotEncryptId(Integer id) {
        this.id = id.toString();
    }

    public String getBlog_navbar_name() {
        return blog_navbar_name;
    }

    public void setBlog_navbar_name(String blog_navbar_name) {
        this.blog_navbar_name = blog_navbar_name;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public Integer getBlog_navbar_id() {
        return blog_navbar_id;
    }

    public void setBlog_navbar_id(Integer blog_navbar_id) {
        this.blog_navbar_id = blog_navbar_id;
    }

    public String getArticle_url() {
        return article_url;
    }

    public void setArticle_url(String article_url) {
        this.article_url = article_url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getFront_descr() {
        return front_descr;
    }

    public void setFront_descr(String front_descr) {
        this.front_descr = front_descr;
    }

    public String getFront_img() {
        return front_img;
    }

    public void setFront_img(String front_img) {
        this.front_img = front_img;
    }

    public String getBack_descr() {
        return back_descr;
    }

    public void setBack_descr(String back_descr) {
        this.back_descr = back_descr;
    }

    public String getHightlight_css() {
        return hightlight_css;
    }

    public void setHightlight_css(String hightlight_css) {
        this.hightlight_css = hightlight_css;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getModify_time() {
        return modify_time;
    }

    public void setModify_time(String modify_time) {
        this.modify_time = modify_time;
    }

    public Integer getIs_demo() {
        return is_demo;
    }

    public void setIs_demo(Integer is_demo) {
        this.is_demo = is_demo;
    }

    public Integer getIs_download() {
        return is_download;
    }

    public void setIs_download(Integer is_download) {
        this.is_download = is_download;
    }

    public String getDemo_url() {
        return demo_url;
    }

    public String getZip_url() {
        return zip_url;
    }

    public void setZip_url(String zip_url) {
        this.zip_url = zip_url;
    }

    public void setDemo_url(String demo_url) {
        this.demo_url = demo_url;
    }

    public void setPrevId(String prevId) {
        this.prevId = prevId;
    }

    public void setNextId(String nextId) {
        this.nextId = nextId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getVisit_count() {
        return visit_count;
    }

    public void setVisit_count(Integer visit_count) {
        this.visit_count = visit_count;
    }

    public String getPrevId() {
        return prevId;
    }

    public void setPrevId(Integer prevId) {
        this.prevId = EncryptUtil.customEncrypt(prevId);
    }

    public String getPrevArticleTitle() {
        return prevArticleTitle;
    }

    public void setPrevArticleTitle(String prevArticleTitle) {
        this.prevArticleTitle = prevArticleTitle;
    }

    public String getNextId() {
        return nextId;
    }

    public void setNextId(Integer nextId) {
        this.nextId = EncryptUtil.customEncrypt(nextId);
    }

    public String getNextArticleTitle() {
        return nextArticleTitle;
    }

    public void setNextArticleTitle(String nextArticleTitle) {
        this.nextArticleTitle = nextArticleTitle;
    }
}
